package com.kehutong.flow.enums;

import org.coraframework.util.HashID;

/**
 * 时间单位
 * 
 * @author liuzhen (liuxing521a@163.com)
 * @createTime 2020年7月2日下午3:08:48
 */
public enum TimeUnit implements HashID {

	MINUTE("1", "分"),
	HOUR("2", "时"),
	DAY("3", "天"),
	WEEK("4", "周"),
    MONTH("5", "月")

    ;
    private final String id;
    private final String desc;

    private TimeUnit(String id, String desc) {
        this.id = id;
        this.desc = desc;
    }


    @Override
    public String getId() {
        return id;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
